﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using eSYSU.Business;
using eSYSU.Model;

public partial class NewsReading : System.Web.UI.Page
{
    public DataTable nd;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["ID"] != null)
            {
                DisplayArticleDetail(Request.QueryString["ID"].ToString());

                iframe_CommentPage.Attributes["src"] = "CommentForm.aspx?Title="
                    + NewsService.GetNewsById(Convert.ToInt32(Request["ID"])).title
                    + "&ID=" + Request["ID"];
            }
            Page.DataBind();
        }
    }

    //初始化页面并填充数据
    protected void DisplayArticleDetail(string sArticalID)
    {
        nd = NewsService.GetComplexNewsByID(Convert.ToInt32(Request["ID"]));
    }
}